import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Index from '../components/index'
import Danger from '../components/danger'
import Work from '../components/work'
import Message from '../components/message'
import Light from '../components/light'
import Air from '../components/air'
import Energy from '../components/energy'
import Indoor from '../components/indoor'
Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // }
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/Danger',
      name: 'Danger',
      component: Danger
    },
    {
      path: '/Work',
      name: 'Work',
      component: Work
    },
    {
      path: '/Message',
      name: 'Message',
      component: Message
    },
    {
      path: '/Light',
      name: 'Light',
      component: Light
    },
    {
      path: '/Air',
      name: 'Air',
      component: Air
    },
    {
      path: '/Energy',
      name: 'Energy',
      component: Energy
    },
    {
      path: '/Indoor',
      name: 'Indoor',
      component: Indoor
    }
  ]
})
